package com.cqc.other.juc.producerConsumer.blockingQueue.demo1;

/**
 * https://pzblog.cn/java/concurrent/concurrent-blockingqueue.html#_3-4%E3%80%81priorityblockingqueue
 * 作者的demo
 */
public class MyThreadTest {

    public static void main(String[] args) {
        Container container = new Container();

        Producer producer = new Producer(container);
        Consumer consumer = new Consumer(container);

        producer.start();
        consumer.start();
    }
}